package Tests;

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

import DataReading.Alarm;
import DataReading.Vessel;

public class AlarmTest {

	private static Alarm alarm;
	private static Vessel vessel1, vessel2;
	private static double d;
	
	@BeforeClass
	public static void setUpBeforeClass() throws Exception{
		alarm = new Alarm(vessel1, vessel2, d);
	}
	
	@Test
	public void testAlarm(){
		assertNotNull(alarm); // testing if its not null
		assertEquals(vessel1, alarm.getVesselX());
		assertEquals(vessel2, alarm.getVesselY());
		assertEquals(d, alarm.getDistance(), 1);
	}
}
